package org.singledog.form.builder.parser.freemarker;

import org.springframework.util.StringUtils;

public class FreeMarkerContants {

    private static String baseSchemaDirectory;

    static void setBaseSchemaDirectory(String schemaDirectory) {
        baseSchemaDirectory = schemaDirectory;
    }

    public static String getBaseSchemaDirectory() {
        if (StringUtils.isEmpty(baseSchemaDirectory)) {
            return "schema/";
        }
        return baseSchemaDirectory;
    }
}
